/* With the this specification the menu structure is not a GipWidget anymore. 
	 It'll have an unique structure once there always only one menu in an 
	 application and it has several callback functions for its items. */

#ifndef GIP_MENU_H
#define GIP_MENU_H 1

#include "gip_types.h"

/* creates a new menu bar in the application */
GipMenu * gip_menu_new();

/* add a menu entry to the menu bar and returns the index of the entry */
int       gip_menu_add(char *title);

/* add an item to the "menuindex" menu entry and returns its index */
int       gip_menu_add_item(int menuindex, char *title, 
														GipEventCallback handler);

/* add a separator to the "index" menu */
void      gip_menu_add_separator(int menuindex);

/* set an item state (enable or disable) */
void      gip_menu_item_state(int menuindex, int itemindex)

#endif
